import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:thinking/config/_.dart';

///和UI有关的Utils
class Core{
  ///修改状态栏颜色
  static void setStatusThemeColor({Color color: ColorConfig.ThemeColor,String textColor:'Dark',bool isBarColor:false}){
    SystemUiOverlayStyle uiStyle = SystemUiOverlayStyle.light.copyWith(
      statusBarColor: isBarColor?color:null,
      statusBarIconBrightness:textColor == 'Light' ? Brightness.light : Brightness.dark ,
    );
    SystemChrome.setSystemUIOverlayStyle(uiStyle);
}
}
